package com.workcell.workdata.xthings.service;

import com.github.pagehelper.PageInfo;
import com.workcell.workdata.xthings.dto.PageVo;
import com.workcell.workdata.xthings.dto.TenantDto;
import com.workcell.workdata.xthings.dto.TenantVo;
import com.workcell.workdata.xthings.entity.Tenant;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author Admin
* @description 针对表【t_tenant(租户表)】的数据库操作Service
* @createDate 2023-05-15 14:58:17
*/
public interface TenantService extends IService<Tenant> {

    List<TenantDto> tenantList(TenantVo tenantVo);

    PageInfo<TenantDto> tenantPage(PageVo pageVo, TenantVo tenantVo);

    Tenant selectByTenantCode(String tenantCode);

    boolean insert(TenantVo tenantVo);

    boolean delete(String tenantCode);

    List<Tenant> selectList(TenantVo tenantVo);
}
